/*
 * VarValue.h
 *
 *  Created on: 17.04.2012
 *      Author: Eugene Kornykhin
 */

#ifndef VARVALUE_H_
#define VARVALUE_H_

#include "../PElement.h"

class VarValue: public PElement {
public:
	VarValue(string name);
	virtual ~VarValue();

	string getVar() const;

	virtual void execute(Interpreter &);

	virtual PolizPosition next_position_after(PolizPosition) const;
	virtual bool isHalt() const;
	virtual VarValue *clone(const Poliz &) const;
	string toString() const;

private:
	string var;
};

#endif /* VARVALUE_H_ */
